import { get, post } from '@/utils/request'

export const uploadFile = (query) => {
  return post('/sys/common/upload', query)
}

export const baseData = (query) => {
  return get('/base/data', query)
}
export const baseSo = (query) => {
  return get('/base/so', query)
}
export const sign = (query) => {
  return post('/sys/common/sign', query)
}

export const privateImg = (query) => {
  return get(`/sys/common/static/${query.fileId}`, query)
}

// export const getWordResume = (query) => {
//   return get('/admin/cvResume/getWordResume', query, { responseType: 'arraybuffer' }, true)
// }

export const getWordResume = (query) => {
  return get('/admin/cvResume/getResumeBriny', query, { responseType: query.responseType ? '' : 'arraybuffer' }, true)
}
export const getUserInfo = (query) => {
  return get('/sys/getUserInfo', query)
}

// export const downloadResumeresume = (query) => {
//   return get('/admin/download/resume/zip', query, { responseType: 'arraybuffer' }, true)
// }

export const downloadResumeresume = (query) => {
  return get('/admin/download/resume/zip', query)
}

export const downloadAvatar = (query) => {
  return get('/admin/download/resume/avatar', query)
}

export const downloadResumeByUser = (query) => {
  return get('/admin/download/resume/byUser', query, { responseType: query.responseType ? '' : 'arraybuffer' }, true)
}

export const cvResumeList = (query) => {
  return get('/admin/cvResume/list2', query)
}

export const downloadEnListInfo = (query) => {
  return get('/admin/excel/getEnListInfo', query)
}
